package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.UserAdjustMappingDao;
import com.kly.user.db.entity.UserAdjustMappingEntity;
import org.springframework.stereotype.Repository;

/**
* User: linqu
* Date: 2024-01-13
* Time: 16:33:40.904
*/

@Repository
public class UserAdjustMappingDaoImpl extends AbstractBaseMapper<UserAdjustMappingEntity> implements UserAdjustMappingDao {

    @Override
    public UserAdjustMappingEntity getUserMapping(String userCode) {
        return this.getSqlSession().selectOne(this.getStatement("getUserMapping"), userCode);
    }

    @Override
    public UserAdjustMappingEntity getByAdid(String adid) {
        return this.getSqlSession().selectOne(this.getStatement("getByAdid"), adid);
    }

    @Override
    public UserAdjustMappingEntity getNoMappingUserByAdid(String adid) {
        return this.getSqlSession().selectOne(this.getStatement("getNoMappingUserByAdid"), adid);
    }
}